CREATE TABLE [dbo].[PO]
(
[POId] [nvarchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[PODate] [datetime] NOT NULL CONSTRAINT [DF_PO_PODate] DEFAULT (getdate()),
[RequestBy] [nvarchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DeliveryTo] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Remark] [nvarchar] (250) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[IsComplete] [bit] NOT NULL CONSTRAINT [DF_PO_IsComplete] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PO] ADD CONSTRAINT [PK_PO] PRIMARY KEY CLUSTERED  ([POId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PO] ADD CONSTRAINT [FK_PO_WebUser] FOREIGN KEY ([RequestBy]) REFERENCES [dbo].[WebUser] ([UserId])
GO
